home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / l / inet-handler / Makefile < prev    next >
Encoding:
Makefile  |  1993-11-17  |  1.2 KB  |  58 lines

  1. #
  2. # GNUmakefile
  3. #
  4. # Author: Tomi Ollila <too@cs.hut.fi>
  5. #
  6. #    Copyright (c) 1993 Tomi Ollila
  7. #        All rights reserved
  8. #
  9. # Created: Tue Sep 14 14:11:54 1993 too
  10. # Last modified: Mon Nov 15 23:46:19 1993 too
  11. #
  12. # $Id: Makefile,v 1.2 1993/11/17 12:06:50 too Exp $
  13. #
  14.  
  15. PRG=    inet-handler
  16.  
  17. #inet-handler version
  18. VERSION=    1
  19.  
  20.  
  21. CC=    gcc
  22. PR=    bumprev
  23. CFLAGS= -O3 -Wall -I../amitcp-2.0/netinclude -I.
  24. #CFLAGS=  -O3 -Wall -DDEBUG -I../amitcp-2.0/netinclude -I.
  25. LFLAGS= -nostdlib
  26.  
  27. SRC=    handler.c applport.c cleanup.c args.c readargs.c interrupt.c c.c
  28.  
  29. OBJ=    $(SRC:.c=.o)
  30.  
  31. all:    $(PRG)
  32.  
  33. .c.o:
  34.     $(CC) $(CFLAGS) -o $@ -c $<
  35. #    $(CC) $(CFLAGS) $<
  36.  
  37. # create new revision file just before linking
  38. #inet-handler.o: $(OBJ)
  39. inet-handler.o: inet-handler.c inet-handler.h
  40. #    bumprev $(VERSION) $(PRG)
  41.     $(CC) -O3 -o $@ -c inet-handler.c
  42. #    $(CC) -S inet-handler.c
  43.  
  44. handler.E: handler.c
  45.     $(CC) -E $(CFLAGS) -o handler.E -c handler.c
  46.  
  47. interrupt.s: interrupt.c
  48.     $(CC) -v -S $(CFLAGS) -o interrupt.s -c interrupt.c
  49.  
  50. $(PRG): $(OBJ) inet-handler.o
  51.     $(CC) -nostdlib -o $@ inet-handler.o $(OBJ)
  52.  
  53.  
  54. handler.o:    handler/begin.c handler/startup.c handler/pendingwrites.c \
  55.         handler/readevent.c handler/applmsg.c handler/timermsg.c \
  56.         handler/mymsg.c handler/cleanup.c
  57.